package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.eshop.Order;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class BuyerOrderActionRequest {

    private String id;
    private String action_engine;

    private BuyerOrderActionRequest(Builder builder) {
        id = builder.id;
        action_engine = builder.action_engine;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private String id;
        private String action_engine;

        private Builder() {
        }

        public Builder id(String id) {
            this.id = id;
            return this;
        }

        public Builder action_engine(String action_engine) {
            this.action_engine = action_engine;
            return this;
        }

        public Call<ResponseBody> build() {
            Order order = new Order();
            return ApiManager.getService().changeOrder(id,action_engine,order);
        }
    }
}
